package com.tarena.lbs.business.dao.repository.ipml;

import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.business.dao.mapper.BusinessMapper;
import com.tarena.lbs.business.dao.repository.BusinessRepository;
import com.tarena.lbs.business.pojo.param.BusinessParam;
import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.query.BusinessQuery;
import com.tarena.lbs.business.pojo.vo.BusinessVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class BusinessRepositoryImpl implements BusinessRepository {
    @Autowired
    private BusinessMapper businessMapper;

    @Override
    public List<BusinessPO> list() {
        List<BusinessPO> list=businessMapper.list();
        return list;
    }

    @Override
    public void businessAdd(BusinessParam param) {
        businessMapper.businessAdd(param);
    }

    @Override
    public BusinessPO getById(Integer businessId) {
        return businessMapper.getById(businessId);
    }


}
